﻿
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpdateUser.aspx.cs" Inherits="TrainingWorkshop.MVPWebsite.User.Views.UpdateUser"
    Title="UpdateUser" MasterPageFile="~/Shared/DefaultMaster.master" %>
<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" Runat="Server">
		<h1>Update User</h1>
        <br/>
        <asp:Panel ID="Panel1" runat="server" GroupingText="Edit User" Height="287px" 
            Width="495px">
            <table border="0" cellpadding="0" cellspacing="0" bgcolor="White">
            <tr>
                <td align="left" bgcolor="White" valign="middle" width="100" colspan="0" style="height: 25px">
                    First Name
                </td>
                <td align="left" bgcolor="White" valign="middle" width="108px" colspan="0" style="height: 25px">
                    <asp:TextBox ID="EditFirstNameTextBox" runat="server"></asp:TextBox>
                </td>
                <td align="center" bgcolor="White" valign="middle" width="180" colspan="0" style="height: 25px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="EditFirstNameTextBox"
            ErrorMessage="Please write the first name"></asp:RequiredFieldValidator>
                </td>
                </tr>
        <tr>
                <td align="left" bgcolor="White" valign="middle" width="100" colspan="0" style="height: 25px">
                    Last Name
                </td>
                <td align="left" bgcolor="White" valign="middle" width="108px" colspan="0" style="height: 25px">
                    <asp:TextBox ID="EditLastNameTextBox" runat="server"></asp:TextBox>
                </td>
                <td align="center" bgcolor="White" valign="middle" width="180" colspan="0" style="height: 25px">
        
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="EditLastNameTextBox"
            ErrorMessage="Please write the last name"></asp:RequiredFieldValidator>
                </td>
            </tr>
        <tr>
                <td align="left" bgcolor="White" valign="middle" width="100" colspan="0" style="height: 25px">
                    Department
                </td>
                <td align="left" bgcolor="White" valign="middle" width="108px" colspan="0" style="height: 25px">
                    <asp:DropDownList ID="EditDepartmentDropDownList" runat="server">
                    </asp:DropDownList>
                </td>
                <td align="center" bgcolor="White" valign="middle" width="180" colspan="0" style="height: 25px">
        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                 ErrorMessage="Please select a department" ControlToValidate="EditDepartmentDropDownList" 
            Font-Bold="False" ForeColor="Red" Operator="NotEqual"
            ValueToCompare="0" ></asp:CompareValidator>
            </td>
            </tr>
        <tr>
                <td align="left" bgcolor="White" valign="middle" width="100" colspan="0" style="height: 25px">
                    Role
                </td>
                <td align="left" bgcolor="White" valign="middle" width="108px" colspan="0" style="height: 25px">
                <asp:DropDownList ID="EditRoleDropDownList" runat="server">
                    </asp:DropDownList>
                </td>
           <td align="center" bgcolor="White" valign="middle" width="180" colspan="0" style="height: 25px">
        <asp:CompareValidator ID="CompareValidator2" runat="server" 
                 ErrorMessage="Please select a role" ControlToValidate="EditRoleDropDownList" 
            Font-Bold="False" ForeColor="Red" Operator="NotEqual" 
            ValueToCompare="0" ></asp:CompareValidator>
            </td>
            </tr>
            </table>
        <br />
        <br />
        <table border="0" cellpadding="0" cellspacing="0" bgcolor="White">
            <tr>
                <td align="center" bgcolor="White" valign="middle" width="80" colspan="0" style="height: 25px">
                    <asp:Button ID="EditUpdateButton" runat="server" Text="    Update" OnClick="EditUpdateButton_Click" Style="background-color: Transparent;background-image: url(../images/add.jpg); background-position: left;background-repeat: no-repeat"/>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
